           if(forma.ulaz.Text=="") return;
           forma.tabela.Rows.Clear() ;
            forma.tabela.Columns.Clear();
	char[] sep = {'|'};
	char[] sep2 = {'\n'};
	char[] sep1 = {','};
	char[] sep3 = {'>',','};
            string[] parametri = forma.ulaz.Text.Split(sep);

            string[] test = parametri[0].Split(sep1);

            forma.tabela.Columns.Add("stat", "stat");
            foreach (String s in test)
                forma.tabela.Columns.Add(s, s);

            forma.konzola.Text +=  "c";
            int ok = 0;
            foreach (state s in forma.nodes)
            {
                forma.konzola.Text += "c";
                System.Collections.ArrayList red = new System.Collections.ArrayList();
                red.Add(s.ime);
                foreach (String klj in test)
                {
                    foreach (veza v in forma.veze)
                    {
                        string[] linija;
                        if (v.funkcija.IndexOf("\n") != -1)
                            linija = v.funkcija.Split(sep2);
                        else { linija = new string[1]; linija[0] =  v.funkcija; }

                        foreach (String sl in linija)
                            if (sl.StartsWith(klj) && v.p == s)
                            {
                                ok = 1;
                                String[] f = sl.Split(sep3);
                                red.Add("(" + v.k.ime.Substring(1, 1) + "," + f[2] + "," + f[1] + ")");
                                String ns ="";
                                // PREPRAVITI
                                for (int z = 0; z < Convert.ToInt32(v.k.ime.Substring(1, 1)) ; z++) ns += "1";
                                forma.konzola.Text = forma.konzola.Text + "c"+ns+f[2]+f[1];
                            }
                    }
                    if (ok != 1 && klj != "stat") { red.Add("d"); forma.konzola.Text = forma.konzola.Text + "c0"; };
                    ok = 0;
                }
                forma.tabela.Rows.Add(red.ToArray());
            }
            forma.konzola.Text = forma.konzola.Text + "ccc" + parametri[1]; 
            forma.ispis.Expanded = true;
            forma.preCrtaj();